package com.bestdata.em.drs.receviedatafromDRS.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class SensorData implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 传感器的id，注：非通道id
     */
    private String sid;

    /**
     * 物理通道id
     */
    private String paraid;

    /**
     * 传感器的数值
     */
    private String sv;

    /**
     * 传感器采集时间
     */
    private long tm;

    public SensorData(){
        this.sid = "";
        this.sv = "";
    }

    public SensorData(String sid, String rtuCode, String sv, long tm){
        this.sid = sid;
        this.paraid = rtuCode;
        this.sv = sv;
        this.tm = tm;
    }
}
